const state = {
    money: 101
  },
  mutations = {
    add (state) {
      state.money++
    },
    reduce (state) {
      state.money--
    }
  },
  actions = {
    add: ({ commit }) => {
      commit('add')
    },
    reduce: ({ commit }) => {
      commit('reduce')
    }
  }

export default {
  namespaced: true,
  state,
  actions,
  mutations
}
